﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.Model.Service.Results
{
    public class Result : IResult
    {
        internal bool result;

        internal string message;

        public Result()
        {
            result = true;
            message = "";
        }

        public Result(bool flag)
        {
            result = flag;
        }

        public Result(string failReason)
        {
            result = false;
            message = failReason;
        }

        public Result(bool result, string message)
        {
            this.result = result;
            this.message = message;
        }

        public bool Succeed
        {
            get
            {
                return result;
            }

        }

        public string Message
        {
            get
            {
                return message;
            }

        }
    }
}
